<!DOCTYPE html>
<html>
<#include "../head.html">
<link rel="stylesheet" type="text/css" href="${webroot}/plugins/fancybox/jquery.fancybox-1.3.4.css" />
<body class="full">
<div class="mc">
    <div class="mc-l">
        <!--左侧导航---{-->
        <div id="navPanelContainer">
            <div class="system-logo cd"></div>
            <!--管理员信息---{-->
            <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "leftForSaBorrow.html">
                </div>
        </div>
        <!--左侧导航---}-->
    </div>
    <div class="mc-m">
        <div class="navToggle"></div>
    </div>
    <div class="mc-r">
        <!--顶部导航---{-->
        <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="查看借款标">
                <#include "banner.html">
                    <!--面包屑导航---}-->

                    <!--工具栏--{-->
                    <div id="toolbar" class="clearfix">
                        <div class="toolbor-module">
                            <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
                        </div>
                    </div>
                    <!--工具栏--}-->

                    <div id="main" class="clearfix">
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>借款标详情</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li>
                                        <div class="title">借款标题：</div>
                                        <div class="v">${b.name!''}</div>
                                    </li>
                                    <li>
                                        <div class="title">借贷总金额：</div>
                                        <div class="v">
                                            ${b.account!}
                                            <input type="hidden" name="account" value="50000" /> 元
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">年利率：</div>
                                        <div class="v">
                                            ${b.apr!} %
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">奖励：</div>
                                        <div class="v">
                                            <#if b.award??>
                                                <#if b.award == 1>
                                                    ${b.partAccount!}%
                                                    <#elseif b.award == 2>
                                                        ${b.funds!}元
                                                        <#else>
                                                            无
                                                </#if>
                                                <#else>
                                                    无
                                            </#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">借款期限：</div>
                                        <div class="v">
                                            <#if b.isday==1>${b.timeLimitDay!"-"}天<#else>${b.timeLimit!"-"}个月</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">还款方式：</div>
                                        <div class="v">
                                            <#if b.isday??&&b.isday==1&&b.type!=112>到期一次性还本付息<#elseif
                                                    b.type ==100>系统自动还款<#elseif b.type==110>到期一次性还本付息
                                                <#elseif b.style??&&b.style==2>到期一次性还本付息
                                                    <#elseif b.style??&&b.style==3>每月付息到期还本
                                                        <#else>等额本息还款</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">最低投标金额：</div>
                                        <div class="v">
                                            <#if b.lowestAccount??&&b.lowestAccount gt 0>${b.lowestAccount}元<#else>无限制</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">最多投标总额：</div>
                                        <div class="v">
                                            <#if b.mostAccount??&&b.mostAccount gt 0>${b.mostAccount}元<#else>无限制</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">有效时间：</div>
                                        <div class="v">
                                            ${b.validTime}天
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">是否是定向标：</div>
                                        <div class="v" style="color: red;">
                                            <#if b.pwd??>
                                                是
                                                <#else>
                                                    否
                                            </#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">是否支持提前还款：</div>
                                        <div class="v" style="color: red;">
                                            <#if b.isAdvanceRepay==1>
                                                是
                                                <#else>
                                                    否
                                            </#if>
                                        </div>
                                    </li>

                                    <#if b.approvalTime??>
                                        <li>
                                            <div class="title">债权生效日期：</div>
                                            <div class="v">
                                                ${b.approvalTime?string("yyyy-MM-dd")}
                                            </div>
                                        </li>
                                    </#if>

                                    <#if b.signDate??>
                                        <li>
                                            <div class="title">合同签订日期：</div>
                                            <div class="v">
                                                ${b.signDate?string("yyyy-MM-dd")}
                                            </div>
                                        </li>
                                    </#if>
                                </ul>
                            </div>
                        </div>


                        <div class="valBox mb15">
                            <div class="top">
                                <strong>借款人基本信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li>
                                        <div class="title">用户名：</div>
                                        <div class="v">${b.user.showName!}</div>
                                    </li>
                                    <li>
                                        <div class="title">真实姓名：</div>
                                        <div class="v">${b.user.realName!}</div>
                                    </li>
                                    <li>
                                        <div class="title">性别：</div>
                                        <div class="v"><#if b.user?? && b.user.sex??><#if b.user.sex==1>男<#elseif b.user.sex==2>女<#else>保密</#if><#else>-</#if></div>
                                    </li>
                                    <li>
                                        <div class="title">民族：</div>
                                        <div class="v"><#if b.user.nation??>${b.user.nation.name!}<#else>-</#if></div>
                                    </li>
                                    <li>
                                        <div class="title">出生日期：</div>
                                        <div class="v">${b.user.birthday!}</div>
                                    </li>
                                    <li>
                                        <div class="title">籍贯：</div>
                                        <div class="v"><#if b.user?? && b.user.province??>${b.user.province.name!}<#else>-</#if>&nbsp;
                                            <#if b.user?? && b.user.city??>${b.user.city.name!}<#else>-</#if>&nbsp;
                                            <#if b.user?? && b.user.area??>${b.user.area.name!}<#else>-</#if></div>
                                    </li>
                                    <li>
                                        <div class="title">邮箱：</div>
                                        <div class="v">${b.user.email!}</div>
                                    </li>
                                    <li>
                                        <div class="title">手机：</div>
                                        <div class="v">${b.user.phone!}</div>
                                    </li>
                                    <li>
                                        <div class="title">身份号码：</div>
                                        <div class="v">${b.user.cardId!}</div>
                                    </li>

                                </ul>
                            </div>
                        </div>
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>借款信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul><li style="float:none;width:auto;height:auto">
                                    <div class="title">借款描述：</div>
                                    <div class="v">${b.content!}</div>
                                </li>

                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">还款来源：</div>
                                        <div class="v">${b.repaymentSource!}</div>
                                    </li>

                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">资金用途：</div>
                                        <div class="v">${b.fundUsage!}</div>
                                    </li>

                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">债务人信息：</div>
                                        <div class="v">${b.debtorInfo!}</div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>担保信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <#if vouchInfoList?? && vouchInfoList?size gt 0>
                                        <#list vouchInfoList as item>
                                            <li style="float:none;width:auto;height:auto">
                                                <div class="title">担保公司名称：</div>
                                                <div class="v"><b>${item.vouchCompany.name!}</b></div>
                                            </li>
                                            <li style="float:none;width:auto;height:auto">
                                                <div class="title">担保公司介绍：</div>
                                                <div class="v">${item.vouchCompany.intro!}</div>
                                            </li>
                                        </#list>
                                        <#else>
                                            <li style="float:none;width:auto;height:auto">
                                                <div class="title">担保方式：</div>
                                                <div class="v">资产管理公司本息担保</div>
                                            </li>
                                    </#if>
                                </ul>
                            </div>
                        </div>
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>审核信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">风控评估：</div>
                                        <div class="v">${b.riskEvaluation!}</div>
                                    </li>

                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">初审备注：</div>
                                        <div class="v">${b.verifyRemark!''}</div>
                                    </li>
                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">初审二审备注：</div>
                                        <div class="v"><#if b.secVerifyRemark??>${b.secVerifyRemark!''}</#if></div>
                                    </li>

                                </ul>
                            </div>
                        </div>
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>借款人上传的文件[共<#if files??>${files?size}</#if>张]</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <#if files??>
                                        <#list files as item>
                                            <#if item.fileTmp??>
                                                <li style="height: 120px;width: 120px;margin: 10px 20px;">
                                                    <a rel="pic_pop" href="${item.fileTmp.fileUrl!}">
                                                        <img src="${item.fileTmp.zoomFileUrl!}" alt="" width="120px"/></a>
                                                </li>
                                            </#if>
                                        </#list>
                                    </#if>
                                </ul>
                                <script src="${webroot}/plugins/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
                                <script type="text/javascript">
                                    $("a[rel=pic_pop]").fancybox({
                                        'transitionIn': 'none',
                                        'transitionOut': 'none',
                                        'titlePosition': 'over',
                                        'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
                                            return '<span id="fancybox-title-over">所有资料 ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
                                        }
                                    });
                                </script>
                            </div>
                        </div>
                        <!-- 还款计划 -->
                        <div class="valBox mb15 clearfix">
                            <div class="top">
                                <strong>还款计划</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>标题</td>
                                        <td>期数</td>
                                        <td>应还款日期</td>
                                        <td>本期应还本息</td>
                                        <td>利息</td>
                                        <td>逾期利息</td>
                                        <td>逾期天数</td>
                                        <!-- <td>还款状态</td> -->
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#if rList??>
                                            <#list rList as item>
                                                <tr class="s">
                                                    <td>${item.borrow.name!}</td>
                                                    <td>
                                                        <#if item.borrow.type==110>
                                                            第1期/共1期
                                                            <#else>
                                                                第${item.period+1}期<#if item.borrow.timeLimit??&&item.borrow.timeLimit!=0>/共${item.borrow.timeLimit}期<#else>/共1期</#if>
                                                        </#if>
                                                    </td>
                                                    <td>${item.repaymentTime?string("yyyy-MM-dd")}</td>
                                                    <td>￥${func.format2(item.repaymentAccount!0)}</td>
                                                    <td>￥${func.format2(item.interest!0)}</td>
                                                    <td>￥${func.format2(item.lateInterest!0)}</td>
                                                    <td>${item.lateDays!0}天</td>
                                                </tr>
                                            </#list>
                                        </#if>
                                </table>
                            </div>

                            <div class="other-tool" style="margin:10px">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>
                            <!--翻页系统--{-->
                            <div class="container s_formPage" style="margin:10px">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=rPage url="${pageUrl}" map=rParam style="style4" />

                            </div>

                        </div>

                        <!-- 申购记录 -->
                        <div class="valBox mb15 clearfix">
                            <div class="top">
                                <strong>申购记录</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>申购者</td>
                                        <td>申购金额</td>
                                        <td>有效金额</td>
                                        <td>申购时间</td>
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#if list??>
                                            <#list list as item>
                                                <tr class="s">
                                                    <td>${item.user.showName!}</td>
                                                    <td>￥${item.money}</td>
                                                    <td>￥${item.account}</td>
                                                    <td>${item.addtime}</td>
                                                </tr>
                                            </#list>
                                        </#if>
                                </table>
                            </div>
                            <div class="other-tool" style="margin:10px">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>
                            <!--翻页系统--{-->
                            <div class="container s_formPage" style="margin:10px">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                            </div>
                        </div>
                    </div>
    </div>
</div>
<div class="mc-b"><#include "../foot.html"></div>
<#include "../jsPage.html">
</body>
</html>


